package vip.liux.front.domain.models.chat;

import org.springframework.data.repository.ListCrudRepository;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.List;

@NoRepositoryBean
public interface IChatUserMessageRepository extends ListCrudRepository<ChatUserMessage, Long> {

    List<MessageWithDetails> getMessages(Long userId, Long targetUserId, int skipCount, int maxResultCount);
}
